package com.scott.spring;

/**
 * @author 黄后林
 * @version 1.0
 * @date 2021-12-16 10:23:47
 */
public class AnnotationConfigApplicationContext {

//    public AnnotationConfigApplicationContext() {
//        System.out.println("IoC容器");
//    }
//
//    public AnnotationConfigApplicationContext(int x) {
//        System.out.println(x);
//        System.out.println("IoC容器");
//    }
//    public AnnotationConfigApplicationContext(Object x) {
//        System.out.println(x);
//        System.out.println("IoC容器");
//    }
    /*public AnnotationConfigApplicationContext(Class x) {
        System.out.println(x);
        System.out.println("IoC容器");
    }*/
    public AnnotationConfigApplicationContext(Class ... x) {
        System.out.println(x);
        System.out.println("IoC容器");
    }


//    public AnnotationConfigApplicationContext(int x,int y,int a) {
//
//        int sum = x+y+a;
//        System.out.println(sum);
//    }
   /* public AnnotationConfigApplicationContext(int... x) {


        // new AnnotationConfigApplicationContext(10,20,30);
        // int... x  int[]
        int sum  = 0;
        for(int index=0;index<x.length;index++){
            sum =sum+x[index];
        }
        System.out.println(sum);

    }*/

}
